{{if !$confirm|default}}
<input type="text" value="" class="midium input" />
{{/if}}
<ul>
{{if $data}}{{foreach $data as $k => $v}}
{{if !$v|is_array}}{{$v = $v->toArray()}}{{/if}}
{{if $v.category_id eq $slug}}
<li>
{{if !$confirm|default}}
<input type="button" class="remove" value="{{$smarty.config.remove}}" />
{{/if}}
<input type="hidden" name="_category[{{$k}}][category_id]" value="{{$slug}}" />
<input type="hidden" name="_category[{{$k}}][category_list_id]" value="{{$v.category_list_id}}" />
<input type="hidden" name="_category[{{$k}}][slug]" value="{{$v.slug}}" />
{{for $i = 3 to 9}}
{{$hoge = 'parameter_'|cat:($i-2)}}
{{if !($v.$hoge)|default}}{{break}}{{/if}}
<input type="hidden" name="_category[{{$k}}][{{$hoge}}]" value="{{$v.$hoge}}" />
{{/for}}
{{$v.slug|publishServiceLink:array($v.parameter_1,
$v.parameter_2|default,$v.parameter_3|default,
$v.parameter_4|default,$v.parameter_5|default,$v.parameter_6|default)}}
</li>
{{/if}}
{{/foreach}}
{{/if}}
</ul>